package com.shop.om;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Author: cshop
 * @Time: 2018-04-26 10:01
 * @Description: 启动入口
 */
@EnableDiscoveryClient
@SpringBootApplication
@ComponentScan(basePackages = {"com.shop"})
@EnableFeignClients(basePackages = {"com.*"})
@MapperScan("com.shop.om.*.dao")
public class OmApplication {


  public static void main(String[] args) {
    SpringApplication.run(OmApplication.class, args);
    System.out.println("main server started --------------------------1");
  }

}